export function file_w(objectId) {
    return AV.File.createWithoutData(objectId)
}

export  function  getObject(name) {
    var TestObject = AV.Object.extend(name);
    var testObject = new TestObject();
    return testObject
}
export function object_w(name, objectId) {
    return AV.Object.createWithoutData(name, objectId)
}


export function query_options(query, option) {
    if (option[1] == "==") {
        query.equalTo(option[0], option[2])
    }
    return query

}

export function getQuery(tableaname) {
    var query = new AV.Query(tableaname);
    return query
}